#
# Be sure to run `pod lib lint FGXMPPFramework.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'FGXMPPFramework'
  s.version          = '4.0.0'
  s.summary          = 'XMPPFramework4.0.0的替代'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://gitee.com/huangchangweng/FGXMPPFramework'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'huangchangweng' => '599139419@qq.com' }
  s.source           = { :git => 'https://gitee.com/huangchangweng/FGXMPPFramework.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '10.0'
  
  s.requires_arc = true
  
  s.default_subspec = 'default'
  
  s.subspec 'default' do |ss|
    ss.source_files = [
    'FGXMPPFramework/Classes/Core/**/*.{h,m}',
    'FGXMPPFramework/Classes/Authentication/**/*.{h,m}',
    'FGXMPPFramework/Classes/Categories/**/*.{h,m}',
    'FGXMPPFramework/Classes/Utilities/**/*.{h,m}',
    'FGXMPPFramework/Classes/Extensions/**/*.{h,m}'
    ]
    ss.ios.exclude_files = 'FGXMPPFramework/Classes/Extensions/SystemInputActivityMonitor/**/*.{h,m}'
    ss.libraries = 'xml2', 'resolv'
    ss.frameworks = 'CoreData', 'SystemConfiguration', 'CoreLocation'
    ss.xcconfig = {
      'HEADER_SEARCH_PATHS' => '$(SDKROOT)/usr/include/libxml2 $(SDKROOT)/usr/include/libresolv',
    }
    ss.resources = ['FGXMPPFramework/Classes/Extensions/**/*.{xcdatamodel,xcdatamodeld}']
    ss.dependency 'CocoaLumberjack', '~> 3.7.4'
    ss.dependency 'CocoaAsyncSocket', '~> 7.6.5'
    ss.dependency 'KissXML', '~> 5.3.1'
    ss.dependency 'libidn', '~> 1.35'
  end
  
end
